package canss.webservice.controls;

import org.apache.beehive.controls.api.bean.ControlInterface;

import canss.webservice.model.Person;

import weblogic.jdbc.SQLExceptionWrapper;

@ControlInterface
public interface PersonControl
{

	
	Boolean createPersonDesc(String _pid, String _pw, String _name,
			Integer _type) throws SQLExceptionWrapper;

	String doLoginProcess(String _pid, String _pw) throws SQLExceptionWrapper;

	Boolean setPersonType(String _pid, Integer _type)
			throws SQLExceptionWrapper;

	String getPersonIDByKey(String _key) throws SQLExceptionWrapper,
			RuntimeException;

	String getKeyByPersonID(String _pid, String _pw) throws SQLExceptionWrapper;

	Boolean doCreatePersonKey(String _pid, String _pw)
			throws SQLExceptionWrapper;

	String updatePersonSession(String _pid)
			throws SQLExceptionWrapper;

	Integer checkExistenceOfSession(String _pid, String _session)
			throws SQLExceptionWrapper;

	Integer getPersonType(String _pid) throws SQLExceptionWrapper;

	Person[] getEntirePerson() throws SQLExceptionWrapper;

	Boolean checkExistenceOfKey(String _pid) throws SQLExceptionWrapper;

	Boolean deleteKeyFromPerson(String _pid) throws SQLExceptionWrapper;

	String doCreatePersonKeyByAdmin(String _pid, String _pw)
			throws SQLExceptionWrapper;


}